function snifferMovieList(url) {
//    saveToFile("ixigua.html");
//    try {
//        var json = [];
//        var movieList = document.getElementsByClassName("VerticalFeedCard lvideo-list__item");
//        for(var i = 0; i < movieList.length; i++) {
//            var movie = movieList[i];
//            json.push({
//                name: getInnerTextByClass("VerticalFeedCard__title", movie),
//                score: getInnerTextByClass("VerticalFeedCard__score", movie),
//                refer: location.host + getAttributeByTag("href", "a", movie),
//                imageUrl: getAttributeByTag("src", "img", movie),
//                host: location.host
//            });
//        }
//        const result = {
//            location: document.location,
//            dataList: json
//        };
//        const params = JSON.stringify(result);
//        console.log(params);
//        window.JsBridge.callNative("onMovieListLoaded", params);
//    } catch (error) {
//        console.log(error);
//    }
}

function snifferPlayList() {
    var elements = document.getElementsByClassName("episode-select-tv");
    var json = [];
    for(var i = 0; i < elements.length; i++) {
        var element = elements[i];
        var href = element.getAttribute("href");
        var id = href.split("?")[0].replace("/video/", "");
        var title = element.innerText;
        var url = "https://" + location.host + href;
        json.push({
            title: title,
            refer: url,
            videoId: id
        });
    }
    var result = {
        location: document.location,
        dataList: json
    };
    const params = JSON.stringify(result);
    console.log(params);
    window.JsBridge.callNative("onPlayListLoaded", params);
}

function snifferPlayInfo() {

}

function removeAds() {

}

function snifferSearchList() {

}